package com.android.powerbankpad.stripe;

import androidx.annotation.NonNull;

import com.stripe.stripeterminal.external.callable.ConnectionTokenCallback;
import com.stripe.stripeterminal.external.callable.ConnectionTokenProvider;
import com.ws.universal.tools.utils.CacheUtils;
import com.ws.universal.tools.utils.LogcatUtils;

public class TokenProvider implements ConnectionTokenProvider {
/*    private tokenProviderSecret tokenProviderSecret;

    public void setTokenProviderSecret(TokenProvider.tokenProviderSecret tokenProviderSecret) {
        this.tokenProviderSecret = tokenProviderSecret;
    }*/

    @Override
    public void fetchConnectionToken(@NonNull ConnectionTokenCallback callback) {
        String secret = CacheUtils.getString("secret");
        LogcatUtils.e("StripePosUtils secret " + secret);
        callback.onSuccess(secret);


    }

/*    public interface tokenProviderSecret {
        void onSuccess(String secret);
    }*/
}
